JBoss Community Archive (Read Only)

RHQ

Best Practices for Remote Clients

Deciding on a Remote Client Approach

RHQ provides several options for remote clients:

  • CLI (command line interface)

  • Java Client

CLI

The CLI is a powerful scripting tool for interacting with the RHQ Server. It offers Rhino JavaScript as the scripting environment. Rhino is a Java-backed implementation of JavaScript. Communication with the RHQ Server is through JBoss Remoting.

This is the recommended approach if you're looking for a remote script-based client. For more on running the CLI see Running the RHQ CLI.

Java Client

When a scripting solution is not viable a programmatic client can be written. The easiest to write is a Java client as it can leverage the Remote API via JBoss Remoting, in the same fashion as the CLI

This is the recommended approach for a programmatic remote client, if Java is an option. For more see Building a Remote Java Client.

REST Client

A REST API was added to RHQ in version 4.3. It is now fully supported. See the REST design page.

This is the recommended approach to:

  • write custom, web-based dashboards

  • send metrics and traits from your applications

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-11 13:30:22 UTC, last content change 2014-07-02 15:26:06 UTC.